<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html">
    <p:outputPanel rendered="#{usuarioBean.logado}">
       <ul>
           <li><a onclick="openMenu('categorias')" href="#">Categorias</a></li>
          <div id="categorias" style="display: none;">
             <ul>
                 <li><h:commandLink action="/pages/produto/cadastrarCategoria.jsf" value="Cadastrar"/></li>
                <li>Listar</li>
                <li>Pesquisar</li>
             </ul>
          </div>
           <li><a onclick="openMenu('produtos')" href="#">Produtos</a></li>
           <div id="produtos" style="display: none;">
               <ul>
                 <li><a href="#{facesContext.externalContext.request.contextPath}/pages/produto/cadastrarProduto.jsf">Cadastrar</a></li>
                 <li>Listar</li>
                 <li>Pesquisar</li>
               </ul>
           </div>
       </ul>
    </p:outputPanel>
</html>
